<template>
  <rx-layout>
    <div slot="center" style>
      <rx-fit>
        <div slot="toolheader" foldheader="true" foldbtn="false" border="false">
          <div class="table-operator">
          </div>
          <span class="search-btn-box">
                <span class="search-btn" @click="searchshow"><i class="iconfont iconguolv"></i>{{$ti18('rxList.leachBtn','过滤')}}</span>
           </span>
        </div>
        <div slot="searchbar" btnalign="right"  v-if="fitSearch" @search="search" @cancel="cancel" @close="close">
          <a-form layout="vertical">
                <a-form-item :label="i18n('form.title','标题')">
                    <a-input :placeholder="i18n('form.title','标题','input')" v-model="queryParam.Q_TITLE__S_LK"/>
                </a-form-item>
                <a-form-item :label="i18n('form.content','详细内容')">
                    <a-input :placeholder="i18n('form.content','详细内容','input')" v-model="queryParam.Q_CONTENT__S_LK"/>
                </a-form-item>
          </a-form>
        </div>
        <rx-grid
                ref="table"
                :allowRowSelect="true"
                :multiSelect="true"
                :columns="columns"
                :defaultPageSize="10"
                url="/api-system/system/core/sysAppActionLog/query"
                :queryParam="queryParam"
                data-field="result.data"
                :pageSizeOptions="['10','30','40']"
                id-field="id"
                @selectChange="onSelectChange"
        >
        </rx-grid>
      </rx-fit>
    </div>
  </rx-layout>
</template>

<script>
  //import SysAppActionLogApi from '@/api/system/core/sysAppActionLog'
  import {BaseList,RxFit,RxGrid } from "@lowcode/jpaas-common-lib";
  export default {
    name: 'SysAppActionLogList',
    mixins: [BaseList],
    components: {
      RxFit
    },
    data() {
      return {
        columns: [
          {
            title: this.$ti18('rxList.index','序号'),
            type: 'indexColumn',
            width: 100,
            dataIndex: 'serial',
            scopedSlots: {customRender: 'serial'}
          },
          {title: this.i18n('form.title','标题'), dataIndex: 'title', width: 100},
          {title: this.i18n('form.content','详细内容'), dataIndex: 'content', width: 100},
        ],
        comment:this.i18n('list.comment','应用操作日志'),
        widthHeight:['800px','600px'],
        fitSearch:false,
      }
    },
    methods:{
      i18n(name,text,key){
          return this.$ti18(name,text,"SysAppAction",key);
      },
      getListByParams(parameter){
       // return SysAppActionLogApi.query(parameter)
      }

    }
  }
</script>
<style scoped>

</style>

